home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / NetBSD / docs-netbsd / Mailinglist-Archive / 1994-08.gz / 1994-08 / 000191_owner-amiga@sun…s.berkeley.edu_Thu Aug 4 19:33:37 1994.msg < prev    next >
Text File  |  1994-10-16  |  2KB  |  48 lines

  1. X400-Originator:  /dd.id=1619692/g=hamish/i=hi/s=macdonald/@bnr.ca 
  2. X400-Mts-Identifier:  
  3.  [/PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/;bcars735.b.487:04.07.94.16.27.41] 
  4. X400-Content-Type:  P2-1984 (2) 
  5. Content-Identifier:  Re: forwarded... 
  6. From: "hamish (h.i.) macdonald" <hamish@bnr.ca>
  7. To: amiga@sun-lamp.cs.berkeley.edu
  8. Subject:  Re: forwarded message from Jukka Forsgren 
  9. Sender: owner-amiga@sun-lamp.cs.berkeley.edu
  10.  
  11. >>>>> On Tue Aug  2 18:24:00 1994,
  12. >>>>> cherry wrote:
  13.  
  14. cherry> For the record, I have tried this, and I still get lockups.
  15. cherry> No changes.  Sorry. :)
  16.  
  17. I'd just like to point out that the mechanism NetBSD uses in the A2091
  18. and A3000 DMA drivers (just do DMA as long as transfers are requested)
  19. can give big problems if that final bytes of a chunk of memory are
  20. read from.
  21.  
  22. In a SCSI write, the DMA chip reads memory, and will continue to read
  23. memory until the SCSI FIFO is full.
  24.  
  25. If you write 1K starting at (end-of-chunk-1K), then the DMA controller
  26. will attempt to read past (end-of-chunk) in order to fill the FIFO
  27. (since the DMA controller was just told to write to the SCSI chip, not
  28. told to write 1K).
  29.  
  30. When this happens, you end up with a total lockup, since the resulting
  31. bus-error cannot be reported to the DMA controller, only to the CPU.
  32.  
  33. The same problem occurred with Linux/68k for the Amiga, and was fixed
  34. by detecting end-of-chunk DMA requests, and using a bounce buffer in
  35. those cases.
  36.  
  37. You might want to figure out if this could be the case.
  38.  
  39. When NetBSD only supported one chunk, it was pretty much impossible,
  40. since the final page of that chunk was reserved for the kernel message
  41. buffer.
  42.  
  43. Perhaps this is happening now.  There is multiple memory chunk support
  44. in NetBSD now, isn't there?
  45.  
  46. Regards,
  47.  Hamish.
  48.